/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package dataPlaylisted;

import java.util.ArrayList;

/**
 *
 * @author Administrador
 */
public class Playlist {

    private int m_id;

    private int m_musicNum;

    private int m_userId;

    private ArrayList<Music> m_playlist;
    
    public Playlist(){
        m_playlist = new ArrayList<Music>();
    }

    public void setPlaylist(ArrayList<Music> _playlist){
        m_playlist = _playlist;
    }

    public ArrayList<Music> getPlaylist(){
        return m_playlist;
    }

    public void setPlaylistElement(Music _music){
        m_playlist.add(_music);
    }

    public void setId(int _id){
        m_id = _id;
    }

    public int getId(){
        return m_id;
    }

    public void setMusicNum(int _id){
        m_musicNum = _id;
    }

    public int getMusicNum(){
        return m_musicNum;
    }

    public void setUserId(int _id){
        m_userId = _id;
    }

    public int getUserId(){
        return m_userId;
    }

    public String toString(int _i){
        String aString = Integer.toString(_i);
        return aString;
    }

    public int toInt(String _str){
        int aInt = Integer.parseInt(_str);
        return aInt;
    }

}
